package com.xrit.sunnyday.service;

import com.xrit.sunnyday.entity.PageResult;
import com.xrit.sunnyday.entity.QueryPageBean;
import com.xrit.sunnyday.pojo.User;

public interface UserService {
    /**
     * 分页条件查询
     */
    PageResult findPage(QueryPageBean queryPageBean);

    /**
     * 添加用户
     * @param user
     * @param roleIds
     */
    void add(User user,Integer[] roleIds);


    /**
     * 根据登陆用户名称查询用户权限信息
     * @param username
     * @return
     */
    User findByUsername(String username);
}
